package me.zhengjie.modules.transformer.history.res;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import me.zhengjie.annotation.Log;
import me.zhengjie.modules.transformer.history.service.FdsRecordService;
import me.zhengjie.utils.FileUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.util.List;

/**
 * @author 陈佳豪
 * @website https://el-admin.vip
 * @date 2021-12-05
 **/
@RestController
@RequiredArgsConstructor
@Api(tags = "历史数据查询管理")
@RequestMapping("/api/transformer/fdsRecord")
public class FdsRecordController {
    @Autowired
    private FdsRecordService fdsRecordService;

    @GetMapping("/getIds")
    @Log("查询批次列表")
    @ApiOperation("查询批次列表")
    public ResponseEntity<Object> getRecordIds() {
        List<Integer> allRecordId = fdsRecordService.getAllRecordId();
        return new ResponseEntity<>(allRecordId,HttpStatus.OK);
    }



}
